#ifndef H_RCGD_ODTCMD_H
#define H_RCGD_ODTCMD_H

#define ODETIC_COMMAND_MAX_LENGTH	10
#define ODETIC_COMMAND_NO	32
typedef struct Odtcmd_S {

	char NAME[ODETIC_COMMAND_MAX_LENGTH];
	char ID;
	char FREQ;

}Odtcmd_;

typedef struct {

	char ctrl_flag;
	char common_flag;
	int  CmdNo_CTRL;
	int  CmdNo_COMMON;
	char interval_2;
	char interval_5;
	char interval_10;

} OdtAutoSend_;

typedef struct {

	char ctrl[ODETIC_COMMAND_NO+1];
	char common[ODETIC_COMMAND_NO+1];

} unsl_flag_;

//extern char	ODT_CMD_START;
extern OdtAutoSend_	AutoReply;

extern void Init_OdteicCOMMAND(void);
extern void OdeticCommand(char);
extern char DoOdeticCommand(int ,char *, char, char );
extern CMD_ OdeticGetCommandID(unsigned char *,int);


extern void AutoSendSet();
extern void AutoSendCommand(char port);

extern char	hex_char[16];

void Init_OdeticCommand();

#endif
